package com.luo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author bin.cn
 * @since 2023-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("house")
public class House implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 门牌号名字（如1501）
     */
    @TableField("name")
    private String name;

    /**
     * 是否有人入住
     */
    @TableField("lived")
    private Integer lived;

    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 门户所属楼栋id
     */
    @TableField("building_id")
    private Integer buildingId;

    /**
     * 门户所属楼栋名字
     */
    @TableField("building_name")
    private String buildingName;


}
